package com.rc.pojo.vo.activity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.core.handler.JacksonTypeHandler;
import com.rc.common.model.ImageModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class PageActivityVO {
    @ApiModelProperty("活动id")
    private Long id;

    @ApiModelProperty("活动名称")
    private String title;

    @Column(typeHandler = JacksonTypeHandler.class)
    @ApiModelProperty("活动封面")
    private List<ImageModel> imgs;

    @ApiModelProperty("活动介绍语")
    private String description;

    @ApiModelProperty("活动内容")
    private String content;

    @ApiModelProperty("所属园区名称")
    private String areaName;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("活动开始时间（MM月dd日）")
//    @JsonFormat(pattern = "MM月dd日")
    private LocalDate beginTime;

    @ApiModelProperty("活动结束时间 （MM月dd日）")
//    @JsonFormat(pattern = "MM月dd日")
    private LocalDate endTime;

    @ApiModelProperty("活动创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("活动更新时间")
    private LocalDateTime updateTime;
}
